package com.ysl.study.designpattern.createmode.abstractfactory;

import com.ysl.study.designpattern.createmode.simplefactory.Color;
import com.ysl.study.designpattern.createmode.simplefactory.Shape;

/**
 * 抽象工厂
 *
 * @author yangshanlin
 * @date 2023/2/17 15:24
 * @describe
 */
public abstract class AbstractFactory {

    /**
     * 抽象形状工厂
     * @return
     */
    public abstract Shape getShapeFactory(String type);

    /**
     * 抽象颜色工厂
     * @return
     */
    public abstract Color getColorFactory(String type);
}
